import request from '@/utils/request'

import variable from '@/utils/variables'
const baseURL = variable.URL.baseURL

// 我的资产信息
export function getMemberInfo(params) {
	return request({
	    baseURL: baseURL,
	    url: '/member/manage/account/info',
	    method: 'GET',
      params: params
	})
}


// 我的资产列表
export function getMemberFlowList(params) {
	return request({
	    baseURL: baseURL,
	    url: '/member/manage/account/flow/list',
	    method: 'POST',
      data: params
	})
}
// 提现明细
export function getMemberWithdrawList(params) {
	return request({
	    baseURL: baseURL,
	    url: '/member/withdraw/list',
	    method: 'POST',
      data: params
	})
}
// 查询可用余额
export function getMemberBalance(params) {
	return request({
	    baseURL: baseURL,
	    url: '/member/withdraw/select_withdraw',
	    method: 'GET',
      params: params
	})
}
// 获取手续费
export function getCommissionCharge(params) {
	return request({
	    baseURL: baseURL,
	    url: '/member/withdraw/select_commission_charge',
	    method: 'GET',
      params: params
	})
}

// 获取验证码
export function getApplyVcode(params) {
	return request({
	    baseURL: baseURL,
	    url: '/member/send_code',
	    method: 'POST',
      params: params
	})
}

// 申请提现
export function applyWithdraw(params) {
	return request({
	    baseURL: baseURL,
	    url: '/member/withdraw/insert_withdraw',
	    method: 'POST',
      data: params
	})
}
// 加载二维码
export function applyQrCode(params) {
	return request({
	    baseURL: baseURL,
	    url: '/member/wxmp/portal/qrconnect',
	    method: 'GET',
      params: params
	})
}

// 查询用户openid
export function getUserOpenid(params) {
	return request({
	    baseURL: baseURL,
	    url: '/member/withdraw/get_openid_bind',
	    method: 'GET',
      params: params
	})
}
